package com.coffee.admin.service.platform.dao;

import com.coffee.admin.service.platform.bean.RechargeRule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface RechargeRuleDao {
    int insert(RechargeRule rule);
    int update(RechargeRule rule);
    Integer selectCount();
    int deleteById(@Param("id") Integer id);
    RechargeRule selectById(@Param("id") Integer id);
    RechargeRule selectByRechargeAmount(@Param("rechargeAmount") Double rechargeAmount);
    RechargeRule selectByRechargeAmountOne(@Param("rechargeAmount") Double rechargeAmount);
    List<RechargeRule> selectAll();
    List<RechargeRule> selectByPage(@Param("offset") Integer offset, @Param("rows") Integer rows);
}
